package com.tonicgb.shared.common.enums;

/**
 * @author zhaiyujin
 * @date 2021-09-01 16:47:06
 * @说明 系统数据信息枚举
 */
public enum MessageCodeEnum {
    JWTValidError(100,"登录已失效,请重新登录"),
    UNAUTHORIZED(101, "未登录或token过期，请登录！"),
    JWTClaimError(102,"越权操作,请重新登录!"),
    JWTExpiredError(103,"token已过期"),
    IMAGE_FORMAT_ERROR(104,"图片格式不正确"),
    ADMIN_NULL(105, "当前用户不存在"),
    ADMIN_PASSWORD_EORROR(106, "账号或者密码不正确"),
    Error(500,"系统出错");



    private int code;
    private String text;
    MessageCodeEnum(int code,String text){
        this.code=code;
        this.text=text;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getText() {
        return text;
    }

    public void setText(String text) {
        this.text = text;
    }
}
